package com.bupt.fmmall.controller;

import com.bupt.fmmall.entity.SalesOrder;
import com.bupt.fmmall.service.OrderService;
import com.bupt.fmmall.vo.ResultVO;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Controller
@ResponseBody
@CrossOrigin
public class PaidController {
    @Resource
    OrderService orderService;
    @RequestMapping("/paid")
    public ResultVO customerPaid(String itemIds,SalesOrder salesOrder){
        return orderService.CusIncreaseOrder(itemIds,salesOrder);
    }


}
